/**
 * 用户类
 * 代表系统中的用户，包括管理员、经理和前台等角色
 */
public class User {
    private String userId;      // 用户ID（唯一）
    private String username;    // 用户名（唯一）
    private String password;    // 密码
    private String role;        // 角色：管理员/经理/前台
    private String phone;       // 手机号（唯一）

    // 构造方法
    public User(String userId, String username, String password, String role, String phone) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.role = role;
        this.phone = phone;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
